<?php
namespace app\admin\validate;

use think\Validate;

class Invest extends Validate
{
    protected $rule = [
        'title' => 'require|min:1',
    ];

    protected $message = [
        'title.require' => '{%username_require}',
    ];

    protected $scene = [
        'add'   => ['title', 'is_disable'],
        'edit'  => ['is_disable'],
    ];
}